#继承练习
class Restaurant():
	
	'''餐厅类'''
	
	def __init__(self,restaurant_name,restaurant_type): #餐馆名 餐馆类型 餐馆内就餐人数
		self.restaurant_name = restaurant_name
		self.restaurant_type = restaurant_type
		self.number_served = 0    #给属性指定默认值
	
	def describe_restaurant(self):  #餐厅详情
		print('餐馆名：'+self.restaurant_name)
		print('餐馆类型：'+self.restaurant_type)
	
	def open_restaurant(self):   #是否营业
		print(self.restaurant_name+'正在营业!欢迎进来恰饭！！！！')
	
	def set_number_served(self,number): #直接设置人数
		self.number_served = number
		
	def increment_number_served(self,number):  #用方法增加人数
		self.number_served += number

class IceCreamStand(Restaurant):
	
	'''冰淇淋类  继承餐厅类'''
	
	def __init__(self,restaurant_name,restaurant_type):
		super().__init__(restaurant_name,restaurant_type)
		self.flovrs = []
	
	def flovrs_list(self,List):
		self.flovrs = List
		print('我们有'+str(self.flovrs)+'口味冰淇淋!请问您需要什么呐')
	
new_icecreamstand = IceCreamStand('喝吧','甜品店')
flovrs = ['草莓','蓝莓','苹果','巧克力']
# ~ print(str(flovrs))
new_icecreamstand.flovrs_list(flovrs)
		

